# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kup
pkgver=0.8.0
pkgrel=0
pkgdesc="A KDE bup backup software for helping people to keep up-to-date backups"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://store.kde.org/p/1127689"
license="GPL-2.0-only"
depends="rsync"
makedepends="extra-cmake-modules qt5-qtbase-dev solid-dev kio-dev kidletime-dev ki18n-dev knotifications-dev kcoreaddons-dev kdbusaddons-dev kconfig-dev kinit-dev kjobwidgets-dev plasma-framework-dev kwidgetsaddons-dev libgit2-dev"
source="https://download.kde.org/stable/kup/kup-$pkgver.tar.xz"
options="!check" # No tests
subpackages="$pkgname-lang"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="b8e970a83c129200ed7d65ab9a1b80330fd1b847868f6fe3f3d202cf65224b843fd9032ffc300cdf1dfdebd0ab611bec456a814c4dfacf51ec5985748c87d2d8  kup-0.8.0.tar.xz"
